<template>
  <div class="about">
    <div class="about_box">
      <div>

        <img style="height:100px;width: 100;" :src="imgUrl" alt="">
      </div>
      <div class="mt-20" >其他同事扫描二维码可直接下载APP</div>
      <div v-if="PLANTFORM=='QTYJ'" style="margin-top: 40px;">
        <img style="height:100px;width: 100px;" src="@/assets/img/qrcode.png" alt="">
      </div>
      <div class="mt-20">扫描二维码打开H5端链接</div>
    </div>
    
  </div>
</template>

<script>
  // import Tabbar from '@/components/Tabbar.vue'
  export default {
    components:{
    },
    data() {
      return {

        imgUrl: '',
        PLANTFORM:process.env.VUE_APP_PLANTFORM
      }
    },
    created() {

      this.getInfo()
    },
    methods: {
      getInfo() {
        let url = '/Public/GetQRImage' // /api/goods
        this.$axios
                .get(url)
                .then((res) => {
                   if (!res.success) return Toast.fail(res.errorText)
                   this.imgUrl = res.data
                })
                .catch((err) => {
                  console.log('err', err)
                })
      },
    },
  }
</script>

<style lang="less" scoped>
  .about {
    height: 100vh;
    text-align: center;
    background-color: #e8f1f8;
    .about_box{
      padding: 20px;
      height: 400px;
      background-color: #fff;
    }
  }
</style>
